package com.example.spring0909.section4.entity;

import java.io.Serializable;

/**
 * 商品(Product)实体类
 *
 * @author makejava
 * @since 2022-04-19 22:52:42
 */
public class Product implements Serializable {
    private static final long serialVersionUID = -87098763175422478L;
    /**
     * 产品id
     */
    private String pid;
    /**
     * 图片地址
     */
    private String img;
    /**
     * 产品名字
     */
    private String name;
    /**
     * 说明书地址
     */
    private String description;


    public String getPid() {
        return pid;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Product(String pid, String img, String name, String description) {
        this.pid = pid;
        this.img = img;
        this.name = name;
        this.description = description;
    }

    public Product() {
    }

    @Override
    public String toString() {
        return "Product{" +
                "pid='" + pid + '\'' +
                ", img='" + img + '\'' +
                ", name='" + name + '\'' +
                ", description='" + description + '\'' +
                '}';
    }
}

